# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

_author=GOMOR
_perlmod=Net-Frame-Layer-SinFP3
pkgname=perl-net-frame-layer-sinfp3
pkgver=1.01
pkgrel=14
pkgdesc='Frame crafting made easy.'
arch=('any')
url='http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/'
license=('GPL' 'PerlArtistic')
depends=('perl')
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/G/GO/$_author/$_perlmod-$pkgver.tar.gz")
sha512sums=('fff3d8a8b1810dbbcab6ab51e43d9322a51fd5c74eff741ed7d7a95d78f680f8b4cb7e47ec8e79cf1520267bea7b5606a6cc0be2efec23f706200333a29531e6')

prepare() {
  cd "$_perlmod-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
  cd "$_perlmod-$pkgver"

  make
}

package() {
  cd "$_perlmod-$pkgver"

  make DESTDIR="$pkgdir" install
}

